<template>
  <div class="login-container">

    <div class="login-head"></div>

    <el-form class="login-form" ref="form" :model="user">
      <el-form-item>
        <el-input placeholder='请输入手机号' v-model="user.mobile"
        ></el-input>
      </el-form-item>
      <el-form-item>
        <el-input placeholder="请输入验证码" v-model="user.code" ></el-input>
      </el-form-item>
      <el-form-item>
        <el-checkbox v-model="checked">已阅读协议</el-checkbox>
      </el-form-item>
      <el-form-item>
        <el-button class='login-btn' type="primary" @click="onSubmit">立即创建</el-button>
      </el-form-item>
    </el-form>

  </div>
</template>

<script>
export default {
  name: 'LoginIndex',
  components: {},
  props: {},
  data () {
    return {
      user: {
        mobile: '',
        code: ''

      },
      checked: true
    }
  },
  computed: {},
  watch: {},
  created () {
  },
  mounted () {
  },
  methods: {
    onSubmit () {
      console.log('submit!')
    }
  }
}
</script>

<style scoped lang="less">
.login-container{
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: url("./back.jpeg") no-repeat;
  background-size: cover;
}
.login-form{
  background-color: #fff;
  padding: 50px;
  min-width: 300px;
}
.login-btn{
  width: 100%;
}
.login-head{
  width: 300px;
  height: 82px;
  background: url("./head.png") no-repeat;
}
</style>
